<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This test makes sure that content inside a list in an incoming fragment isn't
// pulled out of the list during paste.
selection_test(
  '<div contenteditable>|</div>',
  'InsertHTML <ul><li>bar</li></ul>',
  '<div contenteditable><ul><li>bar|</li></ul></div>',
  'Insert list');
</script>
